home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / WIN_VB / SHAD20.ZIP;1 / GENERAPP.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1994-03-16  |  7.7 KB  |  259 lines

  1. VERSION 2.00
  2. Begin Form Shadbx_Form 
  3.    Caption         =   "Shadowed Color Box Test"
  4.    ClientHeight    =   5325
  5.    ClientLeft      =   1290
  6.    ClientTop       =   2085
  7.    ClientWidth     =   5085
  8.    ClipControls    =   0   'False
  9.    Height          =   6015
  10.    Left            =   1230
  11.    LinkTopic       =   "Form1"
  12.    ScaleHeight     =   5325
  13.    ScaleWidth      =   5085
  14.    Top             =   1455
  15.    Width           =   5205
  16.    Begin SHADBX ShadBx1 
  17.       Prop16          =   "Click for About Box"
  18.       BackColor       =   &H00FFFF80&
  19.       Left            =   2400
  20.       MaxWidth        =   150
  21.       Top             =   3600
  22.       WindowLeft      =   0
  23.       WindowPosition  =   0   'False
  24.       WindowTop       =   0
  25.    End
  26.    Begin ComboBox Combo1 
  27.       Height          =   300
  28.       Left            =   240
  29.       TabIndex        =   14
  30.       Text            =   "Combo1"
  31.       Top             =   2880
  32.       Width           =   2175
  33.    End
  34.    Begin CommandButton BTN_Dialog 
  35.       Caption         =   "Dialog"
  36.       Height          =   375
  37.       Left            =   2640
  38.       TabIndex        =   13
  39.       Top             =   240
  40.       Width           =   975
  41.    End
  42.    Begin OptionButton Option3 
  43.       Caption         =   "Maybe option"
  44.       Height          =   255
  45.       Left            =   1200
  46.       TabIndex        =   12
  47.       Top             =   4320
  48.       Width           =   1575
  49.    End
  50.    Begin PictureBox Picture1 
  51.       AutoSize        =   -1  'True
  52.       ClipControls    =   0   'False
  53.       Height          =   360
  54.       Left            =   1080
  55.       Picture         =   GENERAPP.FRX:0000
  56.       ScaleHeight     =   330
  57.       ScaleWidth      =   360
  58.       TabIndex        =   11
  59.       Top             =   720
  60.       Width           =   390
  61.    End
  62.    Begin CheckBox Check2 
  63.       Caption         =   "That"
  64.       Height          =   255
  65.       Left            =   1200
  66.       TabIndex        =   10
  67.       Top             =   3840
  68.       Width           =   1200
  69.    End
  70.    Begin CheckBox Check1 
  71.       Caption         =   "This"
  72.       Height          =   255
  73.       Left            =   1200
  74.       TabIndex        =   9
  75.       Top             =   3360
  76.       Width           =   1200
  77.    End
  78.    Begin Frame Frame1 
  79.       Caption         =   "Do it now"
  80.       Height          =   1215
  81.       Left            =   3000
  82.       TabIndex        =   6
  83.       Top             =   3120
  84.       Width           =   1695
  85.       Begin OptionButton Option2 
  86.          Caption         =   "No"
  87.          Height          =   255
  88.          Left            =   240
  89.          TabIndex        =   8
  90.          Top             =   720
  91.          Width           =   1000
  92.       End
  93.       Begin OptionButton Option1 
  94.          Caption         =   "Yes"
  95.          Height          =   255
  96.          Left            =   240
  97.          TabIndex        =   7
  98.          Top             =   360
  99.          Width           =   1000
  100.       End
  101.    End
  102.    Begin TextBox TXT_Result 
  103.       BackColor       =   &H00FFFFFF&
  104.       ForeColor       =   &H00000000&
  105.       Height          =   375
  106.       Left            =   120
  107.       TabIndex        =   5
  108.       Text            =   "Status output"
  109.       Top             =   4800
  110.       Width           =   4815
  111.    End
  112.    Begin TextBox TXT_KeyString 
  113.       BackColor       =   &H00FFFFFF&
  114.       ForeColor       =   &H00000000&
  115.       Height          =   375
  116.       Left            =   120
  117.       TabIndex        =   2
  118.       Text            =   "This is a popup message to display in the window. The message can be of long length, or it can be short."
  119.       Top             =   1440
  120.       Width           =   4815
  121.    End
  122.    Begin CommandButton BTN_Exit 
  123.       Caption         =   "Exit"
  124.       Height          =   375
  125.       Left            =   3840
  126.       TabIndex        =   1
  127.       Top             =   240
  128.       Width           =   1095
  129.    End
  130.    Begin TextBox TXT_SearchString 
  131.       BackColor       =   &H00FFFFFF&
  132.       ForeColor       =   &H00000000&
  133.       Height          =   375
  134.       Left            =   120
  135.       TabIndex        =   0
  136.       Text            =   "Dawg"
  137.       Top             =   2280
  138.       Width           =   4815
  139.    End
  140.    Begin Label Label2 
  141.       Caption         =   "Click Bell for popup window information"
  142.       Height          =   495
  143.       Left            =   480
  144.       TabIndex        =   15
  145.       Top             =   120
  146.       Width           =   1815
  147.    End
  148.    Begin Label Label3 
  149.       Alignment       =   2  'Center
  150.       Caption         =   "Search String"
  151.       Height          =   255
  152.       Left            =   120
  153.       TabIndex        =   4
  154.       Top             =   1920
  155.       Width           =   4815
  156.    End
  157.    Begin Label Label1 
  158.       Alignment       =   2  'Center
  159.       Caption         =   "Key String"
  160.       Height          =   255
  161.       Left            =   120
  162.       TabIndex        =   3
  163.       Top             =   1080
  164.       Width           =   4815
  165.    End
  166.    Begin Menu nmu_File 
  167.       Caption         =   "&File"
  168.       Begin Menu mnu_Exit 
  169.          Caption         =   "&Exit"
  170.       End
  171.    End
  172.    Begin Menu mnu_Edit 
  173.       Caption         =   "&Edit"
  174.       Begin Menu mnu_Cut 
  175.          Caption         =   "Cu&t"
  176.       End
  177.       Begin Menu mnu_Copy 
  178.          Caption         =   "&Copy"
  179.       End
  180.       Begin Menu mnu_Paste 
  181.          Caption         =   "&Paste"
  182.       End
  183.       Begin Menu mnu_submenu 
  184.          Caption         =   "SubMenu"
  185.          Begin Menu mnu_submenu1 
  186.             Caption         =   "SubMenu 1"
  187.          End
  188.          Begin Menu mnu_submenu2 
  189.             Caption         =   "SubMenu 2"
  190.          End
  191.       End
  192.    End
  193.    Begin Menu mnu_help 
  194.       Caption         =   "&Help"
  195.       Begin Menu mnu_HelpBallons 
  196.          Caption         =   "Help &Shadow Box"
  197.       End
  198.    End
  199. Option Explicit
  200. Sub BTN_Dialog_Click ()
  201.     Dialog.Show
  202. End Sub
  203. Sub BTN_Exit_Click ()
  204.     mnu_Exit_Click
  205. End Sub
  206. Sub Form_Load ()
  207.     If Me.WindowState = 0 Then
  208.         Me.Top = 0
  209.         Me.Left = 0
  210.     End If
  211. End Sub
  212. Sub Form_Resize ()
  213.     ' don't do resizing for the demo
  214.     If Me.WindowState = 0 Then
  215.         Me.Height = 6015
  216.         Me.Width = 5175
  217.     End If
  218. End Sub
  219. Sub mnu_Exit_Click ()
  220.     End
  221. End Sub
  222. Sub mnu_HelpBallons_Click ()
  223.     ' initial help text string
  224.     ShadBx1.MessageText = TXT_KeyString.Text
  225. End Sub
  226. Sub Picture1_Click ()
  227. Dim Msg As String
  228. Dim CRLF As String
  229. Dim QBCBack As Long
  230.     CRLF = Chr$(13) + Chr$(10)
  231.     Msg = "You have just clicked on the Bell Picture." + CRLF + CRLF
  232.     Msg = Msg + "Fill the popup window with the advisory text." + CRLF + CRLF
  233.     Msg = Msg + "The image could contain a hotspot that brings up the popup window when the spot is hit."
  234.     ' store original color
  235.     QBCBack = ShadBx1.BackColor
  236.     ' put up the first shadow box
  237.     ShadBx1.MessageText = Msg
  238.     '
  239.     '
  240.     ' put up the second shadow box
  241.     ' set new BackColor
  242.     ShadBx1.BackColor = QBColor(14)
  243.     ShadBx1.MessageText = "A short message."
  244.     ' return original backcolor
  245.     ShadBx1.BackColor = QBCBack
  246. End Sub
  247. Sub ShadBx1_ClearNotify ()
  248.     ' Shadow box Notification event
  249.     ' This event notifies the VB app when the shadow box
  250.     ' is removed from the screen.
  251.     ' You can use this ClearNotify event to reset a flag that
  252.     '   was set when the shadow box is brought onscreen.
  253.     ' The flag can be used as a signal that a shadow box
  254.     '   is present to the rest of the VB application.
  255.     ' Using this flag can eliminate unwanted screen interaction
  256.     '   preventing interference with an active shadow box.
  257.     Debug.Print "ShadowBox Removed"
  258. End Sub
  259.